﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" Pallet to change the interface name "IPalletServices" in both code and config file together.
    [ServiceContract]
    public interface IPalletServices
    {
        [OperationContract]
        List<PalletDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(PalletDTO Pallet);

        [OperationContract]
        bool Delete(PalletDTO Pallet);

        [OperationContract]
        List<PalletDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                          out long recordCount);

        [OperationContract]
        List<PalletDTO> GetAllPallet();

        [OperationContract]
        PalletDTO GetPallet(string kodePallet);

        [OperationContract]
        List<PalletDTO> GetPalletList(string kodePallet);

        [OperationContract]
        List<PalletDTO> GetPalletByWarehouse(WarehouseDTO warehouse);
    }
}